package com.health.platform.provider.demo.controller;

import com.health.platform.common.restful.AppResponse;
import com.health.platform.provider.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>样例Controller</p>
 * <p>创建日期：2021-02-08</p>
 *
 * @author zhou-qf
 */
@RestController
@RequestMapping("demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/getMsg")
    public AppResponse demo(){
        return demoService.demo();
    }

    @RequestMapping("/getMsg1")
    public AppResponse demo1(){
        return demoService.demo1();
    }

}
